package com.nhpman.pattern.visitor.entry;

import com.nhpman.pattern.visitor.opt.Department;

public abstract class Employee {
	private String name;
	private double wage;
	private int workTime;
	
	public Employee(String name,double wage,int workTime){
		this.name = name;
		this.wage = wage;
		this.workTime = workTime;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getWage() {
		return wage;
	}

	public void setWage(double wage) {
		this.wage = wage;
	}

	public int getWorkTime() {
		return workTime;
	}

	public void setWorkTime(int workTime) {
		this.workTime = workTime;
	}
	
	public abstract void accept(Department handler);
}
